package main

import "fmt"

func main() {

	var positveCount int = 0
	var negativeCount int = 0
	var readNumber int

	for {
		fmt.Println("请输入一个整数：")
		fmt.Scanln(&readNumber)
		if readNumber == 0 {
			break
		} else if readNumber > 0 {
			positveCount++
		} else {
			negativeCount++
		}

	}

	fmt.Println("正数个数：", positveCount, ", 负数个数：", negativeCount)

}
